package com.cnseedlingscloud.draw.prize.service;

import com.cnseedlingscloud.draw.prize.entity.TurntableDraw;
import com.cnseedlingscloud.draw.prize.entity.TurntablePhone;
import com.cnseedlingscloud.draw.prize.entity.TurntableRecord;

import java.util.List;

public interface PrizeService {
    //查询奖项
    List<TurntableDraw> queryAllDraw();
    //根据ID查询奖项信息
    TurntableDraw queryById(Long id);
    //保存
    void  saveDraw(TurntableDraw draw);
    //编辑
    void editDraw(TurntableDraw draw);
    //删除奖项
    void delDraw(Long id);
    //中奖名单
    List<TurntableRecord> queryAllRecord();
    //参与人数
    Integer countAll();
    //查询参与人信息
    List<TurntablePhone> queryAllPhone();
    //奖项剩余数
    Integer queryRemain(Long id);
    //剩余参与人员ID
    List<Long> queryByRemain();
    //保存中奖人员
    void saveLuckyNum(Long id, Long[] luckyArray);

}
